package cn.bgs.serviceuser.clients;

import cn.bgs.serviceedu.entity.Orders;
import cn.bgs.serviceutils.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @Author:YiChen
 * @program: IntelliJ IDEA
 * @Description:
 * @Created 2021/9/28-20:09
 * ,fallback = EduClientsImpl.class
 */
@Component
@FeignClient(name = "service-edu",fallback = EduClientsImpl.class)
public interface EduClients {

    /**
     * 调用查看订单服务
     * @param ordersId
     * @return
     */
    @GetMapping("/serviceedu/orders/findByIdOrders/{ordersId}")
    public Orders findByIdOrders(@PathVariable("ordersId") String ordersId);


    @GetMapping("/serviceedu/category/hello")
    public String hello();
}
